//*************************************************************************************
// EGTB Validation
//*************************************************************************************

#pragma once

#include "EndGameDbCommon.h"

namespace EndGameDB
{
	// the maximum dtm values
	#define MAX_DTM	255

	// progress function
	extern void (*OnValidationSubDbStartedPtr)(int wm, int wk, int bm, int bk, int wmrank, int bmrank);

	// validation error counter
	extern long validationWDL_Errors;
	extern long validationDTM_Errors;
	extern int maxDTM;

	// total counter of all positions
	extern long validationPositions;

	// result comparing functions
	void ClearResultValues(int& result, int& dtm);
	bool CompareResults(int& curResult, int& curDtm, int opponentResult, int opponentDtm);
}